/**
 * Copyright (c) 2006-2009 by Shanghai UnuTrip Network Technology Development Co.,Ltd
 * All rights reserved.
 */


package com.unusap.remote.dto;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author danson
 * MessageDTO.java
 * 2009-8-19
 */
public class MessagesDTO extends AbstractDTO {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4339576411239781847L;
	
	private List<MessageDTO> messages = new ArrayList<MessageDTO>();

	public List<MessageDTO> getMessages() {
		return messages;
	}

	public void setMessages(List<MessageDTO> messages) {
		this.messages = messages;
	}
	
	public void addMessage(MessageDTO message) {
		this.messages.add(message);
	}
	
	public boolean isEmpty() {
		return messages == null || messages.isEmpty();
	}
	
}
